package com.pet.platform.dto;

import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
public class CommentDTO {
    private Long id;
    
    @NotNull(message = "帖子ID不能为空")
    private Long postId;
    
    private Long userId;
    private String username;
    private String userAvatar;
    
    @NotBlank(message = "评论内容不能为空")
    private String content;
    
    private Long parentId;
    private Integer status;
    
    // 回复的评论作者
    private String parentUsername;
    
    private LocalDateTime createdTime;
    private LocalDateTime updatedTime;
} 